package com.ruoyi.lyy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ruoyi.lyy.domain.vo.CarInfoVO;
import com.ruoyi.lyy.mapper.CarInfoMapper;
import com.ruoyi.lyy.service.ICarInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author YueYang
 * Created on 2025/11/17 21:19
 * @version 1.0
 */
@Service
@RequiredArgsConstructor
public class CarInfoServiceImpl implements ICarInfoService {

    //注入车辆信息映射器
    private final CarInfoMapper carInfoMapper;

    /**
     * 根据用户id查询车辆信息
     *
     * @param uid 用户id
     * @return 车辆信息
     */
    @Override
    public List<CarInfoVO> getCarInfoByUserId(Integer uid) {
        return carInfoMapper.getCarInfoByUserId(uid);
    }
}
